package com.jltx.storage.coroutinesdownloader.util

import okhttp3.OkHttpClient
import java.util.concurrent.TimeUnit

/**
 * @author jltxseo
 *         Created by junlintianxia on 2020/04/15.
 */
internal object OkhttpClientFactoryUtils {
    val okHttpClient: OkHttpClient

    init {
        val builder = OkHttpClient.Builder()
        okHttpClient = builder.connectTimeout(60L, TimeUnit.SECONDS)
            .writeTimeout(60L, TimeUnit.SECONDS)
            .readTimeout(60L, TimeUnit.SECONDS)
            .build()
    }
}